import type { NextConfig } from 'next';

const nextConfig: NextConfig = {
  /* config options here */
  output: 'standalone',
  poweredByHeader: false,
  reactStrictMode: true,
  experimental: {
    optimizePackageImports: ['antd', '@ant-design/icons'],
  },
  transpilePackages: ['antd', '@ant-design/v5-patch-for-react-19'],
  webpack: config => {
    // Optimize for Ant Design
    config.resolve.alias = {
      ...config.resolve.alias,
    };
    return config;
  },
};

export default nextConfig;
